package controller

import (
	"ginfwk/framework/base"
	"github.com/gin-gonic/gin"
)

type BaseController struct {
	base.Controller
}

func (c *BaseController) Init(g *gin.Context) {
	// 父级初始化逻辑
	ctx := g.Request.Context()
	c.Controller.InitContext(ctx)

	// 自定义初始化逻辑
	// xxx
}
